package com.timber.util;


import java.awt.*;
import pv.jfcx.*;


public class ITPEdit extends JPVEdit
{
  public static final Color	EDITABLE_BG_COLOR   = Color.white;
  public static final Color	UNEDITABLE_BG_COLOR = new Color( 204, 204, 204 );

  public ITPEdit()
  {
    setBackground( EDITABLE_BG_COLOR );
  }

  public void setEditable( boolean val )
  {
    super.setEditable( val );
    setFocusTraversable( val );
    setBackground( ( val ? EDITABLE_BG_COLOR : UNEDITABLE_BG_COLOR ) );
  }
}
